package com.xjoyt.pay.master.repository;

import java.util.ArrayList;
import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.xjoyt.pay.master.po.DistributorCashRate;
import com.xjoyt.pay.repository.Repository;

public interface DistributorCashRateRepository extends Repository<DistributorCashRate> {

	@Query(" select a from DistributorCashRate a where a.distributor.id in ?1 ")
	ArrayList<DistributorCashRate> findAllByDistributorIdIn(List<String> ids);
	
	@Query(" select a from DistributorCashRate a where a.distributor.id = ?1 ")
	DistributorCashRate findOneByDistributorId(String id);
	
}
